package com.grm.async;

import com.alibaba.fastjson.JSON;
import com.grm.entity.DataExplore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


@Component
public class SuanFaAsyncTask {
    private static Logger logger = LoggerFactory.getLogger(SuanFaAsyncTask.class);

    @Async("suanFaExcutor")
    public void executeSuanFaA(DataExplore dataExplore) {
        logger.info("[SuanFaAsyncTask] executeSuanFaA start,dataExplore = {}", JSON.toJSONString(dataExplore));
    }

    @Async("suanFaExcutor")
    public void executeSuanFaB(DataExplore dataExplore) {
        logger.info("[SuanFaAsyncTask] executeSuanFaB start,dataExplore = {}", JSON.toJSONString(dataExplore));
    }

    @Async("suanFaExcutor")
    public void executeSuanFaC(DataExplore dataExplore) {
        logger.info("[SuanFaAsyncTask] executeSuanFaC start,dataExplore = {}", JSON.toJSONString(dataExplore));
    }
}
